function checkToken(token){
	if(!token){
		uni.showModal({
			content: '您未登录或登录已超时，请重新登录',
			success: function (res) {
				if (res.confirm) {
					uni.redirectTo({
						url:"/pages/login/login"
					})
				} else if (res.cancel) {
					uni.redirectTo({
						url:"/pages/login/login"
					})
				}
			}
		});
	}
}

export default {
	checkToken
}